home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 July / CHIP 2006-07.2.iso / program / web_gelistirme / easyphp1-7_setup.exe / {app} / safe / index-safe.php < prev    next >
Encoding:
Text File  |  2003-09-12  |  2.6 KB  |  77 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <?
  3. $directoryListing = "Répertoire(s) à la racine du serveur (\"www\")";
  4. $noDir = "aucun rΘpertoire";
  5. $presentation = "Cette page permet de visualiser les répertoires placés à la racine du serveur. Si vous souhaitez organiser autrement le répertoire "www", vous pouvez effacer ce fichier. Il en existe une copie de sauvegarde dans le répertoire "safe" (index-safe.php).";
  6. ?>
  7. <html>
  8. <head>
  9. <title>[EasyPHP] - Web Local</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  11. <style type="text/css">
  12. .text1 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: White;text-align : left;}
  13. .text2 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: Silver;text-align : left;}
  14. .titre1 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;font-weight: bold;color: #FFFFFF;}
  15. .titre2 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;font-weight: bold;color: #cccccc;}
  16. </style>
  17. </head>
  18.  
  19. <body bgcolor="#525A73">
  20.  
  21. <div align="center">
  22. <table width="400" cellspacing="0" cellpadding="0" border="0" align="center">
  23. <tr>
  24. <td>
  25. <a href="index.php"><img src="images_easyphp/titre_easyphp_weblocal.gif" width="387" height="116" border="0"></a>
  26. </td>
  27. </tr>
  28. <tr>
  29. </table>
  30. </div>
  31.  
  32. <table width="500" border="0" cellspacing="4" cellpadding="0" align="center">
  33. <tr> 
  34. <td><img src="images_easyphp/cube_rouge_small.gif" width="18" height="20"></td>
  35. <td width="100%" nowrap class="titre1"> <? echo $directoryListing; ?> :</td>
  36. </tr>
  37. </table>
  38.  
  39. <table width="500" border="0" cellspacing="2" cellpadding="0" align="center">
  40. <?
  41. $rep=opendir('.');
  42. $bAuMoinsUnRepertoire = false;
  43. while ($file = readdir($rep)){
  44.     if($file != '..' && $file !='.' && $file !=''){ 
  45.         if (is_dir($file)){
  46.             $bAuMoinsUnRepertoire = true;
  47.             print("<tr><td nowrap class='text1'>      </td>");
  48.             print("<td width='100%' class='text1'>");
  49.             print("  <img src='images_easyphp/dossier.gif' width='23' height='16' align='absbottom'> ");
  50.             print("<a href='$file/' class='text1'>$file</a>");
  51.             print("</td></tr>");
  52.         }
  53.     }
  54. }
  55. if ($bAuMoinsUnRepertoire == false) {
  56.     print("<tr><td nowrap class='text1'><div align='center'>-  $noDir  -</div></td>");
  57.     print("</td></tr>");
  58. }
  59.  
  60. closedir($rep);
  61. clearstatcache();
  62. ?>
  63. </table>
  64.  
  65. <br>
  66.  
  67. <table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
  68. <tr>
  69. <td class="text1">
  70. <? echo $presentation ?> 
  71. </td>
  72. </tr>
  73. </table>
  74.  
  75. </body>
  76. </html>
  77.